yum install -y yum* vim wget gcc 




sed -i  's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
setenforce 0



iptables -F


yum install yum* -y



yum install -y mysql-devel mysql-server


/etc/init.d/mysqld start

rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install -y nginx


chkconfig mysqld on
chkconfig nginx on

echo "*  soft nofile  65555
*  hard nofile 65555" >> /etc/security/limits.conf

cat  >/etc/profile.d/shopex_tty.sh<<'EOF' 
#!/bin/bash

IPADDRS=`/sbin/ifconfig | grep -P -o "((eth[\w:]+)|(addr:[\d.]+)|(lo[\d:]*))" | perl -e '%face;foreach (<STDIN>){$int=$1 if (/((?:(?:eth)|(?:lo))[\d:]*)/);$face{$int}=$1 if (/addr:([\d.]+)/);};foreach $interf (sort keys %face){print "$interf = $face{$interf}\t" if ($interf !~ /^lo$/)}'`

if [ $UID -eq 0 ]
then
        PS1="\n\n\033[1;34m[\u@\H]\e[m  \033[1;33m$IPADDRS\e[m \n[\t] PWD => \033[1;35m\w\e[m\n\#># "
else
        PS1="\n\n\033[1;34m[\u@\H]\e[m  \033[1;33m$IPADDRS\e[m \n[\t] PWD => \033[1;35m\w\e[m\n\#>\$ "
fi
EOF
echo "export HISTTIMEFORMAT=\"%Y-%m-%d_%H:%M:%S \"
export HISTSIZE=2000">>/etc/bashrc